/*
 * @Author: shenya
 * @Date: 2023-09-11 16:33:15
 * @Description: 规则配置js
 */
import request from '@/router/axios';
//查询
export function selectDisplayFile(query) {
  return request({
    url: '/core/displayfile/page',
    method: 'get',
    params: query,
  });
}
//通过id查询
export function selectRulesById(id) {
  return request({
    url: `/core/displayfile/${id}`,
    method: 'get',
  });
}
//通过编号查询
export function selectRulesByCode(code) {
  return request({
    url: `/core/displayfile/code/${code}`,
    method: 'get',
  });
}
//修改
export function updateRules(data) {
  return request({
    url: '/core/displayfile',
    method: 'put',
    data,
  });
}
//删除
export function deleteRulesById(id) {
  return request({
    url: `/core/displayfile/${id}`,
    method: 'delete',
  });
}
